package min.chapter.three;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class MemberEventService implements ApplicationContextAware{
	private ApplicationContext applicationContext;
	
	@Override
	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException{
		this.applicationContext = applicationContext;
	}
	
	public void regist(MemberEvent member) {
		applicationContext.publishEvent(new MemberEventRegistration(this, member));
	}
	

}
